package cn.javazd.auth.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.javazd.auth.entity.SysPermission;
import cn.javazd.auth.mapper.SysPermissionMapper;
import cn.javazd.auth.service.SysPermissionService;
import lombok.AllArgsConstructor;

@AllArgsConstructor
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements SysPermissionService {

	@Override
	public List<SysPermission> findPermissionByUserId(Long userId) {
		return baseMapper.findPermissionByUserId(userId);
	}

}
